package cn.legend.travel.basic.info.service;

import cn.legend.travel.basic.info.pojo.entity.BlackUser;
import cn.legend.travel.basic.info.pojo.param.UpdateInfoParam;
import cn.legend.travel.basic.info.pojo.vo.BlackListVO;
import cn.legend.travel.basic.info.pojo.vo.UserInfoVO;
import cn.legend.travel.common.pojo.authentication.CurrentPrincipal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
public interface UserService {
    int insertBlack(List<Long> idList,CurrentPrincipal principal);

    UserInfoVO getUserInfoById(Long id);

    //根据nickname查询用户
    List<BlackListVO> selectUserInfoByNickname(String nickname);

    //修改用户信息
    int updateUserInfoByUser(UpdateInfoParam updateInfoParam, CurrentPrincipal currentPrincipal);

    //修改用户头像
    int updateAvatar(String avatar,CurrentPrincipal currentPrincipal);
}
